import router from './index';
router.beforeEach((to,from,next)=>{
    if (to.path === '/'){
        next()
    }
    if (to.path == '/page2'){
        router.push('/about')
    }
    next()
    console.log(to.path == '/page2');
})

export default router